package com.wantupai.mvp.framework.support.fragment;

import android.content.Context;
import android.os.Bundle;
import android.view.View;

import com.wantupai.mvp.mvp.MvpPresenter;
import com.wantupai.mvp.mvp.MvpView;


/**
 * //第一重代理模式->生命周期->目标接口
 *
 * @param <V>
 * @param <P>
 * @author :张青
 */
public interface FragmentMvpDelegate<V extends MvpView, P extends MvpPresenter<V>> {

    void onAttach(Context context);

    void onCreate(Bundle savedInstanceState);

    void onActivityCreated(Bundle savedInstanceState);

    void onViewCreated(View view, Bundle savedInstanceState);

    void onStart();

    void onPause();

    void onResume();

    void onStop();

    void onDestroyView();

    void onDestroy();

    void onSaveInstanceState(Bundle outState);

    void onDetach();

}
